package com.zn.test;

import java.util.Scanner;

/**
 * @author Li
 * @Date 2023/4/7 9:22
 */
public class ExamGrade {
    /**
     * 1.键盘输入成绩
     * 2.提示键盘录入
     * 3.接收数据
     * 4.根据接收的数据取判断在哪个区间
     * 5.设置区间
     * 6.打印
     */
    public static void main(String[] args) {
        int gradeone = 100;
        int gradetwo = 95;
        int gradethree = 94;
        int gradefour = 90;
        int gradefive = 89;
        int gradesix = 80;
        int gradeseven = 0;
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入成绩:");
        int grade = scanner.nextInt();
        if (grade>=gradetwo && grade<=gradeone){
            System.out.println("奖励一辆自行车");
        }else if (grade>=gradefour && grade<=gradethree){
            System.out.println("奖励去游乐园玩");
        }else  if (grade>=gradesix && grade<=gradefive){
            System.out.println("奖励一个变形金刚");
        }else if (grade<gradesix && grade>=gradeseven){
            System.out.println("挨打");
        }else {
            System.out.println("请输入0-100内的数据");
        }
        scanner.close();
    }

}
